﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Editar_Perfil.aspx.cs" Inherits="Recetas_Web.Editar_Perfil" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        .style3
        {
            width: 468px;
            height: 145px;
        }
        .style1
        {
            height: 107px;
            width: 97px;
        }
        .style2
        {
            width: 265px;
            height: 107px;
        }
        .style4
        {
            height: 145px;
        }
        .style5
        {
            width: 91%;
        }
        .style8
        {
            width: 426px;
            height: 50px;
            text-align: right;
        }
        .style9
        {
            width: 239px;
            height: 50px;
            text-align: center;
        }
        .style10
        {
            height: 50px;
            width: 739px;
        }
        .style12
        {
            font-size: 12pt;
        }
        .style6
        {
            width: 132px;
            height: 107px;
            font-weight: 700;
        }
        .style13
        {
            width: 17%;
        }
        .style14
        {
            font-size: small;
            font-family: Arial;
        }
        .style15
        {
            width: 223px;
            height: 50px;
        }
        .style16
        {
            width: 223px;
            height: 50px;
            text-align: center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 style="text-align: center; font-size: 26pt; font-family: Arial;">
        EDITAR PERFIL</h1>
    <div style="height: 647px; width: 879px; margin-left: 113px; margin-right: 0px;">
        <br />
        <table style="width: 64%; height: 97px; margin-left: 150px;">
            <tr>
                <td align="left" class="style3">
                    <div style="border: thin solid #808080; width: 421px; height: 193px; margin-left: 2px; background-color: #FFFFFF; margin-bottom: 0px;">
                        <table style="width: 99%; height: 186px; margin-top: 3px; margin-left: 4px;">
                            <tr>
                                <td align="left" class="style13">
                                    <asp:Image ID="ImagePerfil" runat="server" Height="109px" 
                                        ImageUrl="~/Imagenes/icono_perfil.png" Width="91px" 
                                        style="margin-top: 0px" />
                                </td>
                                <td class="style6">
                                    <asp:Label ID="lblNombreApellido" runat="server" 
                                        
                                        style="font-size: x-large; font-weight: 700; font-family: Arial; text-align: left"></asp:Label>
                                    <br />
                                    <br />
                                    <span style="font-family: Arial"><strong>Usuario: </strong>
                                    <asp:Label 
                                        ID="lblUsuario" runat="server" Font-Bold="False"></asp:Label>
                                    </span>
                                    <br />
                                    <br />
                                    <span style="font-family: Arial"><strong>Email: </strong>
                                    <asp:Label 
                                        ID="lblMailUsuario" runat="server" Font-Bold="False"></asp:Label>
                                    </span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td class="style4">
                    <div style="border: thin solid #808080; height: 193px; width: 121px; margin-left: 5px; background-color: #FFFFFF;">
                        <br />
                        <br />
                        <br />
                        <asp:Button ID="btnEditarPerfil" runat="server" 
                            style="text-align: center; margin-left: 4px" Text="Editar Perfil" 
                            Width="115px" onclick="btnEditarPerfil_Click" CausesValidation="False" />
                        <br />
                        <br />
                        <asp:Button ID="btnCambiarClave" runat="server" 
                            style="text-align: center; margin-left: 4px" Text="Cambiar Clave" 
                            Width="115px" onclick="btnCambiarClave_Click" CausesValidation="False" />
                    </div>
                </td>
            </tr>
        </table>
        <br />
        <asp:Label ID="lblMisRecetas" runat="server" Font-Size="X-Large" 
            Font-Underline="True" 
            
            style="font-size: x-large; color: #808080; font-weight: 700; font-family: Arial" 
            ForeColor="#515151">DATOS PERSONALES</asp:Label>
        <br />
        <br />
        <table class="style5" 
            
            style="border: thin solid #000000; background-color: #CCCCCC; height: 355px;" 
            align="center">
            <tr>
                <td class="style8">
                    <span style="font-family: Arial"><span class="style1"><strong>
                    Nombre de Usuario:</strong></span></span></td>
                <td class="style16">
                    <asp:Label ID="lblUsuarioActual" runat="server" CssClass="style14"></asp:Label>
                </td>
                <td class="style9">
                    <asp:TextBox ID="txtNombreUsuario" runat="server" Width="185px"></asp:TextBox>
                </td>
                <td class="style10">
                <asp:RequiredFieldValidator ID="rfvNombreUsuario" runat="server" 
                    ControlToValidate="txtNombreUsuario" ErrorMessage="* Ingresar nombre de Usuario" 
                    Font-Bold="True" Font-Names="Arial" ForeColor="#CC0000" CssClass="style12"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style8">
                    <span style="font-family: Arial"><span class="style1"><strong>
                    Nombre:</strong></span></span></td>
                <td class="style16">
                    <asp:Label ID="lblNombreActual" runat="server" CssClass="style14"></asp:Label>
                </td>
                <td class="style9">
                    <asp:TextBox ID="txtNombrePersonal" runat="server" Width="185px"></asp:TextBox>
                </td>
                <td class="style10">
                <asp:RequiredFieldValidator ID="rfvNombrePersonal" runat="server" 
                    ControlToValidate="txtNombrePersonal" ErrorMessage="* Ingresar nombre" 
                    Font-Bold="True" Font-Names="Arial" ForeColor="#CC0000" CssClass="style12"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style8">
                    <span style="font-family: Arial"><span class="style1"><strong>
                    Apellido:</strong></span></span></td>
                <td class="style16">
                    <asp:Label ID="lblApellidoActual" runat="server" CssClass="style14"></asp:Label>
                </td>
                <td class="style9">
                    <asp:TextBox ID="txtApellidoPersonal" runat="server" Width="185px"></asp:TextBox>
                </td>
                <td class="style10">
                <asp:RequiredFieldValidator ID="rfvApellidoPersonal" runat="server" 
                    ControlToValidate="txtApellidoPersonal" ErrorMessage="* Ingresar apellido" 
                    Font-Bold="True" Font-Names="Arial" ForeColor="#CC0000" CssClass="style12"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style8">
                    <span style="font-family: Arial"><span class="style1"><strong>
                    Sexo:</strong></span></span></td>
                <td class="style16">
                    <asp:Label ID="lblSexoActual" runat="server" CssClass="style14"></asp:Label>
                </td>
                <td class="style9">
                    <asp:RadioButtonList ID="rblSexo" runat="server" Font-Bold="True" 
                        Font-Names="Arial" Font-Size="Small" ForeColor="#515151" Height="16px" 
                        RepeatDirection="Horizontal" style="margin-left: 33px" Width="86px" 
                        CausesValidation="True">
                        <asp:ListItem>Masculino</asp:ListItem>
                        <asp:ListItem>Femenino</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td class="style10">
                <asp:RequiredFieldValidator ID="rfvSexo" runat="server" 
                    ControlToValidate="rblSexo" ErrorMessage="* Seleccionar Sexo" 
                    Font-Bold="True" Font-Names="Arial" ForeColor="#CC0000" CssClass="style12"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style8">
                    <span style="font-family: Arial"><span class="style1"><strong>
                    Fecha de Nacimiento:</strong></span></span></td>
                <td class="style16">
                    <asp:Label ID="lblFechaNacActual" runat="server" CssClass="style14"></asp:Label>
                </td>
                <td class="style9">
                    <asp:TextBox ID="txtFechaNac" runat="server" Width="106px"></asp:TextBox>
                </td>
                <td class="style10">
                <asp:RequiredFieldValidator ID="rfvNacimiento" runat="server" 
                    ControlToValidate="txtFechaNac" ErrorMessage="* Ingresar Fecha de Nacimiento" 
                    Font-Bold="True" Font-Names="Arial" ForeColor="#CC0000" CssClass="style12"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style8">
                    &nbsp;</td>
                <td class="style15">
                    &nbsp;</td>
                <td class="style9">
                    <asp:Button ID="btnAceptarCambios" runat="server" Text="Guardar Cambios" 
                        Width="127px" onclick="btnAceptarCambios_Click" />
                </td>
                <td class="style10">
                    <asp:HyperLink ID="hlCancelar" runat="server" Font-Bold="True" 
                        Font-Names="Arial" Font-Size="Small" Font-Underline="True" 
                        NavigateUrl="~/Perfil_Usuarios.aspx" style="color: #0033CC">Cancelar</asp:HyperLink>
                </td>
            </tr>
        </table>
        <br />
    </div>
</asp:Content>
